package com.wbs.controller;

import com.wbs.model.TbAdmin;
import com.wbs.service.AdminService;
import com.wbs.service.impl.AdminServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 芝梦
 * @Description: 运营商管理控制层
 * @DateTime: 2024/1/26 15:42
 */
@RequestMapping("admin")
@RestController
public class AdminController {
    @Autowired
    private AdminService adminService;

    @GetMapping("selectAdminByUsername")
    public TbAdmin selectAdminByUsername(@RequestParam String username){
        return adminService.selectByUsername(username);
    }

}
